package com.app.mapper;

import com.app.model.PropertyFeeLog;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 物业费缴费记录 Mapper 接口
 * </p>
 *
 * @author yoominic
 * @since 2025-03-17
 */
public interface PropertyFeeLogMapper extends BaseMapper<PropertyFeeLog> {


    @Select("select *\n" +
            "from tb_property_fee_log\n" +
            "where id_value = #{idValue} and CURRENT_TIMESTAMP BETWEEN payment_start AND payment_end")
    List<PropertyFeeLog> selectByPropertyId(@Param("idValue") String idValue);

}
